#include "mainwindow.h"
#include "contentFrame.h"

#include <QSplitter>
#include <QListWidget>
#include <QLabel>

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QFont font("宋体", 16);
    a.setFont(font);

    QMainWindow *mainWindow = new QMainWindow;
    mainWindow->resize(1000, 600);
    QSplitter *splitterMain = new QSplitter(Qt::Horizontal, 0);
    mainWindow->setCentralWidget(splitterMain);

//    设置分割窗口
//    QSplitter *splitterMain = new QSplitter(Qt::Horizontal, 0);
//    splitterMain->setStretchFactor(0,1);
//    splitterMain->setStretchFactor(1,3);

    QList<int> size;
    size << 10000 << 40000;
    splitterMain->setSizes(size);

    splitterMain->setOpaqueResize(true);

    QListWidget *list = new QListWidget;
    list->insertItem(0, "基本信息");
    list->insertItem(1, "安装应用");
    splitterMain->insertWidget(0, list);

    ContentFrame * content = new ContentFrame;

    splitterMain->insertWidget(1,content);


    splitterMain->setWindowTitle("Deepin Android Manager");
//    splitterMain->setMinimumSize(splitterMain->minimumSize());
//    splitterMain->setMaximumSize(splitterMain->maximumSize());




//    splitterMain->show();
    mainWindow->show();
    return a.exec();
}
